From 1b8ae00ed71c00b73c9106b069ad9c2a8c83bd81 Mon Sep 17 00:00:00 2001 From: robertl Date: Sun, 11 Oct 2009 01:50:09 +0000 Subject: [PATCH] Use description instead of shortnmae when -Sn. --- lmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lmx.c b/lmx.c index 69b041a16..f40762b78 100644 --- a/lmx.c +++ b/lmx.c @@ -77,7 +77,7 @@ lmx_print(const waypoint *wpt) { gbfprintf(ofd, " \n"); if (wpt->shortname) { - lmx_write_xml(4, "lm:name", wpt->shortname); + lmx_write_xml(4, "lm:name", global_opts.synthesize_shortnames ? wpt->description : wpt->shortname); } if (wpt->description) { lmx_write_xml(4, "lm:description", wpt->description); -- 2.30.2